Oslo, Norway, June 14, 2012-If you are a net worm, be prepared to give your browser a makeover this summer! The new Opera 12 is now on the scene, and it can satisfy all your internet needs so that you don't feel monotonous for a whole year.
Here is a step-by-step to the monotonous browser with the vivid.
Speed Download Opera 12
Opera12 is completely free, download faster and at the same time, installation speed will be even more unexpected. In your
:: fullscreen { ...}The previous name was: Full-sreen. and WebKit and Firefox still make use of it. Cross-browser code such as the following::-webkit-full-screen {}:-moz-full-screen {}:-ms-fullscreen {}: fullscreen {}:: Backdrop ( new )You can apply color and picture backgrounds to elements under different resolution displays in full screen mode:: fullscreen::backdrop { background-color: #006;/* dark blue */}Backdrop is the pseudo-element behind the Fullsreen element. But it's something el
the installation can open the following interface, the browser can open the Web site can be, but this method opens the computer site, not the mobile site, that is, his user-agent is not a mobile phone, so the response to the interface function, to judge the User-agent site does not work, access to QQ, Baidu and other return is the computer interface.Third, opera* browse 1. Modify User-agentSimilar to Chrome and Firefox, you can install the plugin yourself, since
browsers: IE9 +, FireFox4 +, Safari5 +, Opera12 +, chrome
Read attribute: Object. getOwnPropertyDescriptor () receives two parameters, the object where the attribute is located, the attribute name of the descriptor to be read, supported browsers: IE9 +, FireFox4 +, Safari5 +, Opera12 +, chrome
Creation object:
Factory model:
function createPerson(name,age){var o = new Object();o.name = name;o.age = age;o.s
, and WebKit and Firefox still let them use it. The cross-browser code is as follows::-webkit-full-screen {}:-moz-full-screen {}:-ms-fullscreen {}: fullscreen {}:: Backdrop ( new )You can apply the color and picture backgrounds to the elements under different resolution displays in full screen mode:: fullscreen::backdrop { background-color: #006;/* dark blue */}Backdrop is the pseudo-element behind the fullsreen element, but it is the content on other pages. IE11 provided support, but Firefox
corresponds to the attributes to be modified or added to the first object. Supported browsers: IE9 +, FireFox4 +, Safari5 +, Opera12 +, chrome
Read attribute: Object. getOwnPropertyDescriptor () receives two parameters, the object where the attribute is located, the attribute name of the descriptor to be read, supported browsers: IE9 +, FireFox4 +, Safari5 +, Opera12 +, chrome
Creation object:
Factory mode
does not work, access to QQ, Baidu and other return is the computer interface.Third, opera* browse1. Modify User-agentSimilar to Chrome and Firefox, you can install the plugin yourself, since opera12, opera switch to WebKit kernel, so you can install Chrome plug-in, you can also search for the plugin in Opera's storeUser Agent changer Download: https://addons.opera.com/zh-cn/extensions/details/user-agent-changer/?display=en2.Opera Mobile Emulator + d
design of the interface, to think of QQ cloud judgment, return to different pages do not adapt, here to cooperate with the above method, and then change the user-agent, you can achieve similar chrome debugging functions. 3.Firefox OS Simulator Installation method refer to here: https://developer.mozilla.org/zh-CN/docs/Tools-840092-dup/Firefox_OS_%E6%A8%A1%E6%8B%9F%E5%99%A8#Installing After the installation can open the following interface, the browser can open the Web site can be, but this met
the installation can open the following interface, the browser can open the Web site can be, but this method opens the computer site, not the mobile site, that is, his user-agent is not a mobile phone, so the response to the interface function, to judge the User-agent site does not work, access to QQ, Baidu and other return is the computer interface.Third, opera* browse 1. Modify User-agentSimilar to Chrome and Firefox, you can install the plugin yourself, since
method, and then change the user-agent, you can achieve similar chrome debugging functions.3.Firefox OS SimulatorInstallation method refer to here: https://developer.mozilla.org/zh-CN/docs/Tools-840092-dup/Firefox_OS_%E6%A8%A1%E6%8B%9F%E5%99%A8#InstallingAfter the installation can open the following interface, the browser can open the Web site can be, but this method opens the computer site, not the mobile site, that is, his user-agent is not a mobile phone, so the response to the interface fun
to the mobile page of QQ, so only for the responsive design of the interface, to think of QQ cloud judgment, return to different pages do not adapt, here to cooperate with the above method, and then change the user-agent, you can achieve similar chrome debugging functions.3.Firefox OS SimulatorInstallation method refer to here: https://developer.mozilla.org/zh-CN/docs/Tools-840092-dup/Firefox_OS_%E6%A8%A1%E6%8B%9F%E5%99%A8#InstallingAfter the installation can open the following interface, the b
whether the property can be modified to an accessor property, and the default is True
Enumerbale, which indicates whether the property can be accessed through for-in, default True
Get, called when reading properties, default undefined
Set, called when writing properties, default undefined
Modification must pass Object.defineproperty ()
Cases:
var obj = {
_year:2004,
edition:1
}
object.defineproperty (book, year, {
get:function () {
Return This._year
},
set:function (newvalue) {
if
can only be accessed through the object method. When we call person. name actually calls the getter function of the name attribute (directly calls person. _ name can get the same result. It makes no sense to do this ). In the above example, we can clearly see the relationship between attributes and accessors.
Supports Object. the browser of the defineProperty () method has IE9 + (IE8 is the first implementation Object. defineProperty () method browser, but limited to DOM objects, and can only
we call person. name actually calls the getter function of the name attribute (directly calls person. _ name can get the same result. It makes no sense to do this ). In the above example, we can clearly see the relationship between attributes and accessors.
Supports Object. the browser of the defineProperty () method has IE9 + (IE8 is the first implementation Object. defineProperty () method browser, but limited to DOM objects, and can only create accessors), Firefox4 +, Safari5 +,
Let's start with the example of a gray egg pain. demo1:
Function Test () {var x = 1; with ({X: 2}) {eval ('function Foo () {console. log (x);} '); EVAL ('var bar = function () {console. log (x);} ');} Foo (); Bar ();} test ();
Most engines implemented by es5 (except opera12-) results. both are printed. I must emphasize it first. this result is incorrect according to the standard. it should be 1, 2 according to the standard.
RunCode
Based on its own positioning and the label type and positioning of the parent node, there are 20 cases (IE8, chrome23, opera12 results ):
We can summarize the following rules:
A) if the position is fixed, there is no offsetparent, but Firefox returns the same body. B) The position is absolute. The offsetparent of relative elements is always the most recent located element. The latest TD and th elements are not found, and no body is found
implements the Object.defineproperty () method, but is limited to DOM objects and can only create accessor properties), firefox4+, safari5+,opera12+, Chrome. [[configurable]],[[enumerable]] cannot be modified in browsers that do not support the Object.defineproperty () method.Before the Object.defineproperty () method, to create accessor properties, general use of non-standard methods: __defineGetter__() and __defineSetter__() , these two methods wer
(person.name); //"xiaochang"person.name = "CC"; //尝试修改name属性console.log(person.name); //"xiaochang"console.log(person.age); //不可读属性,undefinedperson.age = 200; //修改ageconsole.log(person._age); //直接读取对象方法才能访问的属性,可以看到值已更新200console.log(person.tel); //123456person.age = 654321; //更新telconsole.log(person.tel); //654321
The underscore in front of the attribute represents a property that can only be accessed through the object method, and when we call Person.name, the Getter function of the Name
default value of which isundefined;[[Set]]The function that is called when the property is written, the default value of this attribute isundefined;to define properties by default, you must use theECMAScript5of theobject.defineproperty5 ()method, receives three parameters--the object where the property resides, the name of the property, and a Descriptor object2) define multiple properties:ECMAScript5 defines the object.defineproperties () method for defining multiple properties, receiving two p
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.